<template>
	<view>
		<view class="agreement themeColor f-c">
			<image @click="tochangeIconUrl" :src="chooseIconUrl" mode="widthFix"></image>
			<text>我已阅读并同意<text>《隐私政策》</text>和<text>《用户协议》</text></text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				chooseIconUrl:'../../static/register/icon_xz.png',
				chooseFlage:true
			}
		},
		methods: {
			tochangeIconUrl(){
				if(this.chooseIconUrl==="../../static/register/icon_wxz.png"){
					this.chooseIconUrl="../../static/register/icon_xz.png"
					this.chooseFlage=!this.chooseFlage
				}else{
					this.chooseIconUrl="../../static/register/icon_wxz.png"
					this.chooseFlage=!this.chooseFlage
				}
			},
		}
	}
</script>

<style>
.agreement{
		font-size: 20rpx;
	}
</style>
